FROM node:16
WORKDIR /app
COPY *.json ./
COPY *.js ./
COPY *.ts ./
COPY pages ./pages/
COPY public ./public/
COPY styles ./styles/
COPY .env.local ./
COPY components ./components
COPY utils ./utils
RUN yarn config set registry https://registry.npmmirror.com
RUN yarn install
RUN yarn run build
ENTRYPOINT npx next start
